


src     = main.c func.c
obj     = main.o func.o
hdr     = func.h
flags   = -Wall -g




all: lab05

lab05: $(src) $(hdr) $(obj)
	gcc $(obj) -o lab05 $(flags)
	
.c.o:
	gcc -c $^ $(flags)

clean:
	rm -rf *~ *.o lab05
	
open:
	kate $(src) $(hdr) &
	
	